/** 表格配置 */
export default {
	addTitle: "新增考核对象",
	editTitle: "编辑考核对象",
	viewTitle: "查看考核对象",
	page: true,
	tip: false,
	simplePage: true,
	searchShow: true,
	searchMenuSpan: 6,
	height: "auto",
	border: true,
	delBtn: false,
	index: true,
	selection: true,
	dialogClickModal: false,
	searchLabelWidth: 100,
	labelWidth: 100,
	column: [
		{
			label: "机构名称",
			prop: "organizationNo",
			labelProp: "organizationName",
			type: "tree",
			isHierarchy: true,
			search: true,
			props: { label: "name", value: "code" },
			rules: [
				{
					required: true,
					message: "请选择所属机构",
					trigger: "blur"
				}
			]
		},
		{
			label: "现分行",
			prop: "danwei",
			hide: true,
			showColumn: false,
			rules: [
				{
					required: true,
					message: "请输入现分行",
					trigger: "blur"
				}
			]
		},
		{
			label: "原分行",
			prop: "danweiCopy",
			hide: true,
			showColumn: false,
			rules: [
				{
					required: true,
					message: "请输入原分行",
					trigger: "blur"
				}
			]
		},
		{
			label: "对象类型",
			prop: "assessmentDifference",
			type: "radio",
			search: true,
			rules: [
				{
					required: true,
					message: "请选择对象类型",
					trigger: "blur"
				}
			],
			value: "1",
			dicData: [
				{ label: "机构", value: "0" },
				{ label: "个人", value: "1" }
			]
		},
		{
			label: "对象名称",
			prop: "objectName",
			minWidth: 110,
			search: true,
			rules: [
				{
					required: true,
					message: "请输入对象名称",
					trigger: "blur"
				}
			]
		},
		{
			label: "对象编号",
			prop: "tellerNo",
			search: true,
			rules: [
				{
					required: true,
					message: "请输入对象编号",
					trigger: "blur"
				}
			]
		},
		// {
		//   label: "考核模板",
		//   prop: "assessmentTemplateId",
		//   multiple: true,
		//   dataType: "string",
		//   type: "select",
		//   minWidth: 400,
		//   props: {
		//     label: "templateName",
		//     value: "templateId",
		//   },
		//   dicData: [],
		//   rules: [
		//     {
		//       required: true,
		//       message: "请选择考核模板",
		//       trigger: "blur",
		//     },
		//   ],
		//   change: ({ value }) => {
		//     let result = "";
		//     if (value) {
		//       const dic = this.getDIC("assessmentTemplateId");
		//       result = dic
		//         .map((e) => (value.indexOf(e.templateId) !== -1 ? e : null))
		//         .filter((e) => e)
		//         .map((e) => e.templateName)
		//         .join(",");
		//     }
		//     if (this.form) {
		//       this.form.assessmentTemplateName = result;
		//     }
		//   },
		// },
		// {
		//   label: "考核模板编号",
		//   prop: "templateNumber",
		//   slot: true,
		//   display: false,
		// },
		{
			label: "现排序",
			prop: "sort",
			type: "number",
			value: 1,
			rules: [
				{
					required: true,
					message: "请输入现排序",
					trigger: "blur"
				}
			]
		},
		{
			label: "原排序",
			prop: "sortCopy",
			type: "number",
			value: 1,
			rules: [
				{
					required: true,
					message: "请输入原排序",
					trigger: "blur"
				}
			]
		},
		{
			label: "说明",
			prop: "remarks",
			type: "textarea",
			maxlength: 500,
			span: 24,
			minRows: 5,
			showWordLimit: true
		}
	],
	// group: [
	// 	{
	// 		column: [
	// 			{ label: "机构名称", prop: "organizationNo" },
	// 			{ label: "机构名称", prop: "hello" },
	// 			{ label: "机构名称", prop: "hello1" },
	// 		]
	// 	},
	// 	{
	// 		column: [
	// 			{ label: "机构名称", prop: "1" },
	// 			{ label: "机构名称", prop: "2" },
	// 			{ label: "机构名称", prop: "3" },
	// 		]
	// 	},
	// ]
};
